import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store, { storeInit } from '@/store'
// 全局引入 Element-plus
import ElementPlus from 'element-plus'
import * as Icons from '@element-plus/icons'
import 'element-plus/dist/index.css'
// 统一浏览器样式
import 'normalize.css'
// 引入 basecss
import '@/assets/css/index.less'

const app = createApp(App)
app.use(router).use(store).use(ElementPlus).mount('#app')
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key])
})
// 初始化 store
storeInit()
